package com.huxb.contentcenter.service;

import com.huxb.contentcenter.dao.share.ShareMapper;
import com.huxb.contentcenter.entity.share.Share;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author huxb
 * @date 2020/2/8 0008 下午 4:32
 */
@Service
public class ShareService {
    @Resource
    private ShareMapper shareMapper;

    /**
     * 根据id查询分享详情
     * @param id
     * @return
     */
    public Share findShareById(Integer id) {
     return    shareMapper.selectByPrimaryKey(id);
    }
}
